run:
  timeout: 10m
  skip-dirs:
    # this code has been copied from kubectl cli. No need to lint external code.
    - go_lib/dependency/k8s/drain
    # this code has been copied from kubernetes vertical-pod-autoscaler. No need to lint external code.
    - modules/302-vertical-pod-autoscaler/hooks/internal/vertical-pod-autoscaler/v1
issues:
  exclude:
  - ST1005.*
  - "should not use dot imports"
  - "don't use an underscore in package name"
  - "exported: .*"

linters-settings:
  gci:
    sections:
      - standard
      - default
      - prefix(github.com/deckhouse/)
  goimports:
    local-prefixes: github.com/deckhouse/
  errcheck:
    ignore: fmt:.*,[rR]ead|[wW]rite|[cC]lose,io:Copy

linters:
  disable-all: true
  enable:
  - dogsled
  - errcheck
  - gci
  - gocritic
  - gofmt
  - goimports
  - gosimple
  - govet
  - ineffassign
  - misspell
  - revive
  - staticcheck
#  - structcheck
  - typecheck
  - unconvert
  - unparam
  - whitespace
